<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.List"%>
<%@page import="com.ahp.bean.Factor"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.Set"%>
<%@ include file="../include/common.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>选择模板</title>
<script type="text/javascript" src="<%=path %>/js/jquery-1.3.2.js"></script>
<link rel="stylesheet" href="<%=path%>/style/style_manage.css" type="text/css"></link>
<style type="text/css">
div{margin: 8px auto;}
#out{width:60%; text-align: left;}
</style>
<script type="text/javascript">
next = function(){
	$("#oneForm").submit();
}
</script>
</head>
<body>
<div>
	<h1 style="position: relative;">二级因子权重</h1>
	<div id="result" style="color:red;"></div>
	<%
	List<Factor> oneList = null;
	if(request.getAttribute("levOneList")!=null){
		oneList = (List<Factor>)request.getAttribute("levOneList");
	}
	Map<Integer,List<Factor>> mapOneTwoMap = null;
	if(request.getAttribute("oneTwoMap")!=null){
		mapOneTwoMap = (Map<Integer,List<Factor>>)request.getAttribute("oneTwoMap");
	}
	%><form action="<%=path %>/mod/levelTwo.action" method="post" id="oneForm"><div style="text-align: center;"><%
	for(Factor factor : oneList){
	%><div id="out"><%=factor.getName() %>:<br/><%
		List<Factor> listFactors = mapOneTwoMap.get(factor.getFacId());
		for(Factor fac : listFactors){
			%><div style="margin-left:60px;"><div style="width: 30%; float: left;"><%=fac.getName() %></div><div style="width: 68%; float: left;"><input type="text" name="id-<%=factor.getFacId() %>-<%=fac.getFacId() %>" value=""/></div></div><%
		}
	%></div><%
	}
	%><div style="clear: both; margin-bottom: 30px;"><input type="button" value="下一步" onclick="next();" /></div>
	</form>
</div>
</body>
</html>